#![no_std]
#![no_main]

mod io;
mod uart;

use crate::uart::{uart_init, uart_send_string};
use core::{arch::global_asm, panic::PanicInfo};

global_asm!(include_str!("boot.s"));

#[panic_handler]
fn panic_handler(info: &PanicInfo) -> ! {
    loop {}
}

#[unsafe(no_mangle)]
fn kernel_main() {
    uart_init();
    uart_send_string("Welcome to RISC-V\r\n");
    loop {
        continue;
    }
}
